package com.gpStudy.design.single;

/**
 * 饿汉式，  私有化构造方法，静态私有的成员变量，开放的获取实例方法
 */
public class HungrySingleton {

    private HungrySingleton(){}
    private static HungrySingleton hungry = new HungrySingleton();
    public static HungrySingleton getInstance(){
        return hungry;
    }

}
